utils.on(tbody,'click',e=>{
    const target =e.target;
    if(Array.from(target.classList).includes('btn-del')){
        if(confirm('确定删除吗')){
            const tr = target.parentNode.parentNode;
            const id = tr.getAttribute('data-id');
            utils.fetch('./api/shop/delete.php',{id}).then(resp=>{
                console.log(resp)
                if(resp.code===1){
                    getlist();
                    
                }else{
                    alert(resp.body.msg)
                }
            })
        }
       
    }
})